<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>奔跑的熊大</title>
    <link rel="stylesheet" href="../css/style_init.css">
    <style>
        @keyframes bear {
            0% {
                background-position: 0 0;
            }
            100% {
                background-position: -1600px 0;
            }
        }
        @keyframes move {
            0% {
                left: 0;
            }
            100% {
                left: 50%;
                transform: translateX(-50%);
            }
        }
        @keyframes bkmove {
            0% {
                left: 0;
            }
            100% {
                left: -2540px;
            }
        }
        .body {
            /* position: relative; */
        }
        .box {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 600px;
            overflow: hidden;
        }
        .box .bk1,
        .box .bk2 {
            position: absolute;
            bottom: 0;
            animation: bkmove 10s linear infinite;
        }
        .box .bk2 {
            animation-delay: .5s;
            animation: bkmove 4s linear infinite;
        }
        .xiong {
            position: absolute;
            bottom: 0;
            width: 200px;
            height: 100px;
            background: url(../images/png/bear.png) no-repeat;
            /* animation: bear 5s timing-function delay iteration-count direction fill-mode; */
            animation: bear .2s steps(8) infinite, move 5s forwards;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="bk1">
            <img src="../images/png/bg2.png" alt="">
        </div>
        <div class="bk2">
            <img src="../images/png/bg1.png" alt="">
        </div>
        <div class="xiong">磊哥你好呀</div>

    </div>
</body>
</html>